package common.model.po;

import com.baomidou.mybatisplus.annotation.TableName;
import common.model.po.base.BasePo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author 米泽鹏
 * @since 2023-12-04 下午 10:39
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_business_code_detail")
@ApiModel(value = "SysBusinessCodeDetail对象", description = "")
public class SysBusinessCodeDetail extends BasePo<SysBusinessCodeDetail> {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "业务编码id")
	private Long businessCodeId;

	@ApiModelProperty(value = "父级id，0表示顶级")
	private Long parentId;

	@ApiModelProperty(value = "业务取值")
	private String value;

	@ApiModelProperty(value = "业务取值名称")
	private String label;

	@ApiModelProperty(value = "排序")
	private Integer sort;

	@Override
	public Serializable pkVal() {
		return super.getId();
	}

}
